<template>
    <!-- 系统设置模块-重置异常表-->
    <div class="fillcontain">
        <!-- 标题 -->
        <div class="fastQuery">
            <el-card>
                <el-row>
                    <el-col :span="8" class="common-box">
                        <el-col :span="10" class="common-lab text_left">
                            <label class="labelName">重置异常表受理号</label>
                        </el-col>
                        <el-col :span="12">
                            <el-input clearable v-model="applnum" placeholder=""></el-input>
                        </el-col>
                    </el-col>
                    <el-col :span="6" class="text_center">
                        <el-button type="primary" plain icon="el-icon-refresh" @click="resetErr">重置</el-button>
                    </el-col>
                </el-row>
            </el-card>
            <el-card style="margin-top: 0.625rem;">
                <el-row>
                    <el-col :span="6" class="text_center">
                        <el-button type="primary" plain icon="el-icon-refresh" @click="refreshPremium">手动刷新保费计算缓存
                        </el-button>
                    </el-col>
                </el-row>
            </el-card>
            <el-card style="margin-top: 0.625rem;">
                <el-row>
                    <el-col :span="6" class="text_center">
                        <el-button type="primary" plain icon="el-icon-refresh" @click="refreshAmount">手动刷新累计保额缓存
                        </el-button>
                    </el-col>
                </el-row>
            </el-card>

            <el-tabs type="border-card" class="mt10">
                <el-tab-pane label="mysql-task">
                    <el-row>
                        <el-col :span="8" class="common-box">
                            <el-col :span="10" class="common-lab">
                                <label class="labelName">批处理</label>
                            </el-col>
                            <el-col :span="14">
                                <el-select v-model="taskQuery.errorJobId" clearable placeholder="请选择">
                                    <el-option
                                            v-for="item in taskBatchs"
                                            :key="item.value"
                                            :label="item.label"
                                            :value="item.value">
                                    </el-option>
                                </el-select>
                            </el-col>
                        </el-col>
                        <el-col :span="8" class="common-box">
                            <el-col :span="10" class="common-lab">
                                <label class="labelName">任务号</label>
                            </el-col>
                            <el-col :span="14">
                                <el-input clearable v-model="taskQuery.errorDataInfo" placeholder=""></el-input>
                            </el-col>
                        </el-col>
                        <el-col :span="8" class="common-box">
                            <el-col :span="10" class="common-lab">
                                <label class="labelName">受理号</label>
                            </el-col>
                            <el-col :span="14">
                                <el-input clearable v-model="taskQuery.caseno" placeholder=""></el-input>
                            </el-col>
                        </el-col>
                    </el-row>

                    <el-row class="mt10">
                        <el-col :span="8" class="common-box">
                            <el-col :span="10" class="common-lab">
                                <label class="labelName">创建时间</label>
                            </el-col>
                            <el-col :span="14">
                                <el-date-picker v-model="taskQuery.createTime" type="datetime"
                                                placeholder="选择日期">
                                </el-date-picker>
                            </el-col>
                        </el-col>
                        <el-col :span="8" class="common-box">
                            <el-col :span="10" class="common-lab">
                                <label class="labelName">处理状态</label>
                            </el-col>
                            <el-col :span="14">
                                <el-select v-model="taskQuery.errorStatus" clearable placeholder="请选择">
                                    <el-option
                                            v-for="item in errorStatus"
                                            :key="item.value"
                                            :label="item.label"
                                            :value="item.value">
                                    </el-option>
                                </el-select>
                            </el-col>
                        </el-col>
                        <el-col :span="6" class="text_center">
                            <el-button type="primary" icon="el-icon-search" @click="getTaskList"></el-button>
                        </el-col>
                    </el-row>

                    <el-row>
                        <el-col :span="24" class="pb15 pt5">
                            <el-button type="danger" plain @click="resetErrTask">已处理</el-button>
                        </el-col>
                    </el-row>
                    <el-table
                            ref="multipleTable"
                            v-loading="loading"
                            :data="taskData"
                            highlight-current-row
                            header-cell-class-name="table-header-class"
                            style="width:100%">
                        <el-table-column
                                type="selection"
                                width="55">
                        </el-table-column>
                        <el-table-column property="errorJobId" label="批处理名称" show-overflow-tooltip :formatter="formatterBatchName" min-width="140"></el-table-column>
                        <el-table-column property="errorDataInfo" label="任务号" show-overflow-tooltip min-width="150"></el-table-column>
                        <el-table-column property="caseno" label="受理号" show-overflow-tooltip min-width="150"></el-table-column>
                        <el-table-column property="errorStatus" label="处理状态" show-overflow-tooltip :formatter="formatterStatus" min-width="150"></el-table-column>
                        <el-table-column property="errorInfo" label="备注" show-overflow-tooltip min-width="300"></el-table-column>
                        <el-table-column property="createTime" label="创建时间" min-width="130"></el-table-column>
                        <el-table-column property="lastUpdateTime" label="最后处理时间" show-overflow-tooltip min-width="130"></el-table-column>
                    </el-table>
                    <el-row>
                        <el-col :span="24">
                            <div class="pagination">
                                <el-pagination
                                        background
                                        v-if='paginationsTask.total > 0'
                                        :page-sizes="paginationsTask.pageSizes"
                                        :page-size="paginationsTask.pageSize"
                                        :layout="paginationsTask.layout"
                                        :total="paginationsTask.total"
                                        :current-page='paginationsTask.pageIndex'
                                        @current-change='handleCurrentChangeTask'
                                        @size-change='handleSizeChangeTask'>
                                </el-pagination>
                            </div>
                        </el-col>
                    </el-row>
                </el-tab-pane>
                <el-tab-pane label="mysql-nb">
                    <el-row>
                        <el-col :span="8" class="common-box">
                            <el-col :span="10" class="common-lab">
                                <label class="labelName">批处理</label>
                            </el-col>
                            <el-col :span="14">
                                <el-select v-model="nbQuery.errorJobId" clearable placeholder="请选择">
                                    <el-option
                                            v-for="item in nbBatchs"
                                            :key="item.value"
                                            :label="item.label"
                                            :value="item.value">
                                    </el-option>
                                </el-select>
                            </el-col>
                        </el-col>
                        <el-col :span="8" class="common-box">
                            <el-col :span="10" class="common-lab">
                                <label class="labelName">受理号</label>
                            </el-col>
                            <el-col :span="14">
                                <el-input clearable v-model="nbQuery.errorDataInfo" placeholder=""></el-input>
                            </el-col>
                        </el-col>
                    </el-row>

                    <el-row class="mt10">
                        <el-col :span="8" class="common-box">
                            <el-col :span="10" class="common-lab">
                                <label class="labelName">创建时间</label>
                            </el-col>
                            <el-col :span="14">
                                <el-date-picker v-model="nbQuery.createTime" type="datetime"
                                                placeholder="选择日期">
                                </el-date-picker>
                            </el-col>
                        </el-col>
                        <el-col :span="8" class="common-box">
                            <el-col :span="10" class="common-lab">
                                <label class="labelName">处理状态</label>
                            </el-col>
                            <el-col :span="14">
                                <el-select v-model="nbQuery.errorStatus" clearable placeholder="请选择">
                                    <el-option
                                            v-for="item in errorStatus"
                                            :key="item.value"
                                            :label="item.label"
                                            :value="item.value">
                                    </el-option>
                                </el-select>
                            </el-col>
                        </el-col>
                        <el-col :span="6" class="text_center">
                            <el-button type="primary" icon="el-icon-search" @click="getNbList"></el-button>
                        </el-col>
                    </el-row>

                    <el-row>
                        <el-col :span="24" class="pb15 pt5">
                            <el-button type="danger" plain @click="resetErrNb">已处理</el-button>
                        </el-col>
                    </el-row>
                    <el-table
                            ref="multipleTable1"
                            v-loading="loading"
                            :data="nbData"
                            highlight-current-row
                            header-cell-class-name="table-header-class"
                            style="width:100%">
                        <el-table-column
                                type="selection"
                                width="55">
                        </el-table-column>
                        <el-table-column property="errorJobId" label="批处理名称" show-overflow-tooltip :formatter="formatterBatchName" min-width="140"></el-table-column>
                        <el-table-column property="errorDataInfo" label="标识号" show-overflow-tooltip min-width="150"></el-table-column>
                        <el-table-column property="errorStatus" label="处理状态" show-overflow-tooltip :formatter="formatterStatus" min-width="150"></el-table-column>
                        <el-table-column property="errorInfo" label="备注" show-overflow-tooltip min-width="300"></el-table-column>
                        <el-table-column property="createTime" label="创建时间" min-width="130"></el-table-column>
                        <el-table-column property="lastUpdateTime" label="最后处理时间" show-overflow-tooltip min-width="130"></el-table-column>
                    </el-table>
                    <el-row>
                        <el-col :span="24">
                            <div class="pagination">
                                <el-pagination
                                        background
                                        v-if='paginationsNb.total > 0'
                                        :page-sizes="paginationsNb.pageSizes"
                                        :page-size="paginationsNb.pageSize"
                                        :layout="paginationsNb.layout"
                                        :total="paginationsNb.total"
                                        :current-page='paginationsNb.pageIndex'
                                        @current-change='handleCurrentChangeNb'
                                        @size-change='handleSizeChangeNb'>
                                </el-pagination>
                            </div>
                        </el-col>
                    </el-row>
                </el-tab-pane>
                <el-tab-pane label="400">
                    <el-row>
                        <el-col :span="8" class="common-box">
                            <el-col :span="10" class="common-lab">
                                <label class="labelName">批处理</label>
                            </el-col>
                            <el-col :span="14">
                                <el-select v-model="query400.taskjobid" clearable placeholder="请选择">
                                    <el-option
                                            v-for="item in batchs400"
                                            :key="item.value"
                                            :label="item.label"
                                            :value="item.value">
                                    </el-option>
                                </el-select>
                            </el-col>
                        </el-col>
                        <el-col :span="8" class="common-box">
                            <el-col :span="10" class="common-lab">
                                <label class="labelName">受理号</label>
                            </el-col>
                            <el-col :span="14">
                                <el-input clearable v-model="query400.staskno" placeholder=""></el-input>
                            </el-col>
                        </el-col>
                    </el-row>

                    <el-row class="mt10">
                        <el-col :span="8" class="common-box">
                            <el-col :span="10" class="common-lab">
                                <label class="labelName">创建时间</label>
                            </el-col>
                            <el-col :span="14">
                                <el-date-picker v-model="query400.sbegintime" type="datetime"
                                                placeholder="选择日期">
                                </el-date-picker>
                            </el-col>
                        </el-col>
                        <el-col :span="8" class="common-box">
                            <el-col :span="10" class="common-lab">
                                <label class="labelName">处理状态</label>
                            </el-col>
                            <el-col :span="14">
                                <el-select v-model="query400.errtype" clearable placeholder="请选择">
                                    <el-option
                                            v-for="item in errorStatus"
                                            :key="item.value"
                                            :label="item.label"
                                            :value="item.value">
                                    </el-option>
                                </el-select>
                            </el-col>
                        </el-col>
                        <el-col :span="6" class="text_center">
                            <el-button type="primary" icon="el-icon-search" @click="get400List"></el-button>
                        </el-col>
                    </el-row>
                    <el-row>
                        <el-col :span="24" class="pb15 pt5">
                            <el-button type="danger" plain @click="resetErr400">已处理</el-button>
                        </el-col>
                    </el-row>
                    <el-table
                            ref="multipleTable2"
                            v-loading="loading"
                            :data="data400"
                            highlight-current-row
                            header-cell-class-name="table-header-class"
                            style="width:100%">
                        <el-table-column
                                type="selection"
                                width="55">
                        </el-table-column>
                        <el-table-column property="taskjobid" label="批处理名称" show-overflow-tooltip :formatter="formatterBatchName" min-width="140"></el-table-column>
                        <el-table-column property="staskno" label="受理号" show-overflow-tooltip min-width="150"></el-table-column>
                        <el-table-column property="serrtype" label="处理状态" show-overflow-tooltip :formatter="formatterStatus" min-width="150"></el-table-column>
                        <el-table-column property="serrinfo" label="备注" show-overflow-tooltip min-width="300"></el-table-column>
                        <el-table-column property="sbegintime" label="创建时间" min-width="130"></el-table-column>
                        <el-table-column property="sdealtime" label="最后处理时间" min-width="130"></el-table-column>
                    </el-table>
                    <el-row>
                        <el-col :span="24">
                            <div class="pagination">
                                <el-pagination
                                        background
                                        v-if='paginations400.total > 0'
                                        :page-sizes="paginations400.pageSizes"
                                        :page-size="paginations400.pageSize"
                                        :layout="paginations400.layout"
                                        :total="paginations400.total"
                                        :current-page='paginations400.pageIndex'
                                        @current-change='handleCurrentChange400'
                                        @size-change='handleSizeChange400'>
                                </el-pagination>
                            </div>
                        </el-col>
                    </el-row>
                </el-tab-pane>
            </el-tabs>
        </div>
    </div>
</template>
<script>
    import {getToken} from '@/utils/auth' // 验权(从cookie中获取)
    import TaskConstants, {call} from "@/api/taskManager/common"
    import constant from "@/utils/constant";
    import {get400list, getNBlist, getTasklist,resetErrStatusNb,resetErrStatusTask,resetErrStatus400} from '@/api/setting/resetBatchStatuts'
    import {MessageBox} from 'element-ui';

    export default {
        data() {
            return {
                applnum: '',
                loading: false,
                userInfo: {},
                taskData: [],
                nbData: [],
                data400: [],
                taskQuery: {
                    errorJobId: "",
                    errorStatus: "",
                    createTime: "",
                    errorDataInfo: "",
                    caseno: "",
                },
                nbQuery: {
                    errorJobId: "",
                    errorStatus: "",
                    createTime: "",
                    errorDataInfo: "",
                },
                query400: {
                    taskjobid: "",
                    errtype: "",
                    sbegintime: "",
                    staskno: "",
                },
                //需要给分页组件传的信息
                paginationsTask: {
                    total: 0,        // 总数
                    pageIndex: 1,  // 当前位于哪页
                    pageSize: 20,   // 1页显示多少条
                    pageSizes: [5, 10, 15, 20, 50],  //每页显示多少条
                    layout: "total, sizes, prev, pager, next, jumper",   // 翻页属性
                    printTime: '',
                },
                paginationsNb: {
                    total: 0,        // 总数
                    pageIndex: 1,  // 当前位于哪页
                    pageSize: 20,   // 1页显示多少条
                    pageSizes: [5, 10, 15, 20, 50],  //每页显示多少条
                    layout: "total, sizes, prev, pager, next, jumper",   // 翻页属性
                    printTime: '',
                },
                paginations400: {
                    total: 0,        // 总数
                    pageIndex: 1,  // 当前位于哪页
                    pageSize: 20,   // 1页显示多少条
                    pageSizes: [5, 10, 15, 20, 50],  //每页显示多少条
                    layout: "total, sizes, prev, pager, next, jumper",   // 翻页属性
                    printTime: '',
                },
                errorStatus: [
                    {label: "待处理", value: "1"},
                    {label: "已处理", value: "2"}
                ],
                taskBatchs: [
                    {label: "创建新契约任务", value: "nb_start_create"},
                    {label: "任务等级生成", value: "nb_start_lvl"},
                    {label: "电子单流向确认", value: "nb_start_wd"},
                    {label: "自动分配", value: "nb_start_dis"},
                    {label: "新契约自动回复", value: "nb_zh_hf"},
                    //{label :"非照会回复影像",value:"nb_zh_error"},
                    {label: "新契约照会逾期", value: "nb_zh_due"},
                    {label: "新契约照会自动回扔", value: "nb_zh_back"},
                    {label: "续期自动回复", value: "ren_hf"},
                    {label: "续期照会逾期", value: "ren_zh_due"},
                    {label: "任务预警超时", value: "task_warn"},
                ],
                nbBatchs: [
                    {label: "ind98同步", value: "ind98_ynch"},
                    {label: "状态同步批处理", value: "nb_status_syn"},
                    {label: "异常中台回写核心", value: "write_back"},
                    {label: "机器人影像推送", value: "robot_push_error"},
                    {label: "机器人影像下载", value: "robot_download_error"},
                    {label: "高端儿童医疗险风石对接", value: "fs_push_error"}
                  /*,
                    {label: "理赔登记批处理", value: "realRegister_error"},
                    {label: "理赔登记捞数批处理", value: "getData_error"},
                    {label: "保全登记批处理", value: "registration_error"}*/
                ],
                batchs400: [
                    {label: "创建投保书", value: "create_file"},
                    {label: "承保后调查任务抽取", value: "inve_start"},
                    {label: "承保后调查任务自动结束", value: "inve_end"},
                    {label: "续期任务抽取", value: "ren_start"},
                ]
            }
        },
        created() {
            this.userInfo = JSON.parse(localStorage.getItem(getToken('token'))).userKeyInfo;

        },
        mounted() {
        },
        methods: {
            getTaskList() {
                this.taskQuery.pageNumber = this.paginationsTask.pageIndex;
                this.taskQuery.pageSize = this.paginationsTask.pageSize;
                getTasklist(this.taskQuery).then(res => {
                    this.paginationsTask.total = res.data.total;
                    this.taskData = res.data.list;
                })
            },
            getNbList() {
                this.nbQuery.pageNumber = this.paginationsNb.pageIndex;
                this.nbQuery.pageSize = this.paginationsNb.pageSize;
                getNBlist(this.nbQuery).then(res => {
                    this.paginationsNb.total = res.data.total;
                    this.nbData = res.data.list;
                })
            },
            get400List() {
                this.query400.pageNumber = this.paginations400.pageIndex;
                this.query400.pageSize = this.paginations400.pageSize;
                get400list(this.query400).then(res => {
                    this.paginations400.total = res.data.total;
                    this.data400 = res.data.list;
                })
            },
            resetErrTask(){
                let arr = [];
                MessageBox.confirm("更新批处理数据状态为已处理吗？", '警告', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    type: 'warning'
                }).then(() => {
                    this.$refs.multipleTable.selection.forEach(item => {
                        arr.push({jobId:item.errorJobId,taskno:item.errorDataInfo});
                    });
                    this.$store.dispatch('loading/CHNAGE_SUBLOADING', true);
                    resetErrStatusTask(arr).then(res => {
                        if (res.resultCode == constant.SUCCESS) {
                            this.$message({
                                message: '重置成功！',
                                type: 'success'
                            });
                            this.getTaskList()
                        }
                        this.$store.dispatch('loading/CHNAGE_SUBLOADING', false);
                    })
                }).catch(err => {
                    this.$store.dispatch('loading/CHNAGE_SUBLOADING', false);
                });
            },
            resetErrNb(){
                let arr = [];
                MessageBox.confirm("更新批处理数据状态为已处理吗？", '警告', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    type: 'warning'
                }).then(() => {
                    this.$refs.multipleTable1.selection.forEach(item => {
                        arr.push({jobId:item.errorJobId,taskno:item.errorDataInfo});
                    });
                    this.$store.dispatch('loading/CHNAGE_SUBLOADING', true);
                    resetErrStatusNb(arr).then(res => {
                        if (res.resultCode == constant.SUCCESS) {
                            this.$message({
                                message: '重置成功！',
                                type: 'success'
                            });
                            this.getNbList()
                        }
                        this.$store.dispatch('loading/CHNAGE_SUBLOADING', false);
                    })
                }).catch(err => {
                    this.$store.dispatch('loading/CHNAGE_SUBLOADING', false);
                });
            },
            resetErr400(){
                let arr = [];
                MessageBox.confirm("更新批处理数据状态为已处理吗？", '警告', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    type: 'warning'
                }).then(() => {
                    this.$refs.multipleTable2.selection.forEach(item => {
                        arr.push({jobId:item.taskjobid,taskno:item.staskno});
                    });
                    this.$store.dispatch('loading/CHNAGE_SUBLOADING', true);
                    resetErrStatus400(arr).then(res => {
                        if (res.resultCode == constant.SUCCESS) {
                            this.$message({
                                message: '重置成功！',
                                type: 'success'
                            });
                            this.get400List()
                        }
                        this.$store.dispatch('loading/CHNAGE_SUBLOADING', false);
                    })
                }).catch(err => {
                    this.$store.dispatch('loading/CHNAGE_SUBLOADING', false);
                });
            },
            resetErr() {
                let reg = /^[0-9]+$/
                if (!reg.test(this.applnum) || this.applnum == undefined || this.applnum == "undefined" || this.applnum.trim() ==
                    "" || this.applnum.trim().length < 6) {
                    this.$message({
                        message: '请输入正确受理号！',
                        type: 'error'
                    });
                    return
                }
                MessageBox.confirm("重置受理号" + this.applnum + "的批处理数据吗？", '警告', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    type: 'warning'
                }).then(() => {
                    this.$store.dispatch('loading/CHNAGE_SUBLOADING', true);
                    call(TaskConstants.apis.resetErr + this.applnum).then(res => {
                        if (res.resultCode == constant.SUCCESS) {
                            this.$message({
                                message: '重置成功！',
                                type: 'success'
                            });
                            this.applnum = ""
                        }
                        this.$store.dispatch('loading/CHNAGE_SUBLOADING', false);
                    })
                }).catch(err => {
                    this.$store.dispatch('loading/CHNAGE_SUBLOADING', false);
                });
            },
            refreshPremium() {
                MessageBox.confirm("确定刷新保费计算缓存吗？", '提示', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    type: 'warning'
                }).then(() => {
                    this.$store.dispatch('loading/CHNAGE_SUBLOADING', true);
                    call(TaskConstants.apis.refreshPremium + this.userInfo.account).then(res => {
                        if (res.resultCode == constant.SUCCESS) {
                            this.$message({
                                message: '刷新成功！',
                                type: 'success'
                            });
                        }
                        this.$store.dispatch('loading/CHNAGE_SUBLOADING', false);
                    })
                }).catch(err => {
                    this.$store.dispatch('loading/CHNAGE_SUBLOADING', false);
                });
            },
            refreshAmount() {
                MessageBox.confirm("确定刷新累计保额缓存吗？", '提示', {
                    confirmButtonText: '确定',
                    cancelButtonText: '取消',
                    type: 'warning'
                }).then(() => {
                    this.$store.dispatch('loading/CHNAGE_SUBLOADING', true);
                    call(TaskConstants.apis.refreshAmount + this.userInfo.account).then(res => {
                        if (res.resultCode == constant.SUCCESS) {
                            this.$message({
                                message: '刷新成功！',
                                type: 'success'
                            });
                        }
                        this.$store.dispatch('loading/CHNAGE_SUBLOADING', false);
                    })
                }).catch(err => {
                    this.$store.dispatch('loading/CHNAGE_SUBLOADING', false);
                });
            },
            // 每页多少条切换
            handleSizeChangeTask(pageSize) {
                this.paginationsTask.pageIndex = 1;
                this.paginationsTask.pageSize = pageSize;
                this.getTaskList();
            },
            // 上下分页
            handleCurrentChangeTask(page) {
                this.paginationsTask.pageIndex = page;
                this.getTaskList();
            },
            // 每页多少条切换
            handleSizeChangeNb(pageSize) {
                this.paginationsNb.pageIndex = 1;
                this.paginationsNb.pageSize = pageSize;
                this.getNbList();
            },
            // 上下分页
            handleCurrentChangeNb(page) {
                this.paginationsNb.pageIndex = page;
                this.getNbList();
            },
            // 每页多少条切换
            handleSizeChange400(pageSize) {
                this.paginations400.pageIndex = 1;
                this.paginations400.pageSize = pageSize;
                this.get400List();
            },
            // 上下分页
            handleCurrentChange400(page) {
                this.paginations400.pageIndex = page;
                this.get400List();
            },
            formatterStatus(row, column, cellValue, index){
                for (let i = 0; i < this.errorStatus.length; i++) {
                    if (this.errorStatus[i].value === row.errorStatus || this.errorStatus[i].value === row.serrtype){
                        return this.errorStatus[i].label;
                    }
                }
                return row.errorStatus ? row.errorStatus : row.serrtype;
            },
            formatterBatchName(row, column, cellValue, index){
                for (let i = 0; i < this.taskBatchs.length; i++) {
                    if (this.taskBatchs[i].value === row.errorJobId ){
                        return this.taskBatchs[i].label;
                    }
                }
                for (let i = 0; i < this.nbBatchs.length; i++) {
                    if (this.nbBatchs[i].value === row.errorJobId ){
                        return this.nbBatchs[i].label;
                    }
                }
                for (let i = 0; i < this.batchs400.length; i++) {
                    if (this.batchs400[i].value === row.taskjobid ){
                        return this.batchs400[i].label;
                    }
                }
                return row.errorJobId ? row.errorJobId : row.taskjobid
            },
        },
        computed: {},
    }
</script>
<style lang="less" scoped>
    .fillcontain {
        padding-bottom: 0;

        .fastQuery {
            padding: 15px 20px 10px 20px;
            background: #fff;

            .fastQuery_title {
                color: #666;
                padding: 6px 0px;
            }
        }
    }

    .contain {
        background: #fff;
        padding: 10px;
        margin-bottom: 20px;
    }

    .pagination {
        padding: 10px 20px;
        text-align: right;
    }
</style>
